home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / prodor31.arc / PRO-R.BAT < prev    next >
DOS Batch File  |  1989-10-08  |  1KB  |  62 lines

  1. @echo off
  2. echo off
  3. rem -- pro-r.bat - process "relist" archive contents - for ProDOOR 3.1
  4. rem -- %1-comport, %2-minutes, %3-resultfile, %4 sourcefile
  5.  
  6. chkpath testfile %0 >>%3
  7. if errorlevel 1 goto end
  8. testfile %4 arc zip pak lzh zoo
  9. if errorlevel == 98 goto cant_handle
  10. if errorlevel == 5 goto zoo
  11. if errorlevel == 4 goto lzh
  12. if errorlevel == 3 goto pak
  13. if errorlevel == 2 goto zip
  14. if errorlevel == 1 goto arc
  15. goto end
  16.  
  17. :zoo
  18. chkpath zoo %0 >>%3
  19. if errorlevel 1 goto end
  20. zoo -list >>%3 %4
  21. if errorlevel 1 goto error
  22. goto end
  23.  
  24. :arc
  25. chkpath arctv %0 >>%3
  26. if errorlevel 1 goto end
  27. arctv -p%1 -t%2 >>%3 %4
  28. if errorlevel 1 goto error
  29. goto end
  30.  
  31. :zip
  32. chkpath ziptv %0 >>%3
  33. if errorlevel 1 goto end
  34. ziptv -p%1 -t%2 >>%3 %4
  35. if errorlevel 1 goto error
  36. goto end
  37.  
  38. :pak
  39. chkpath pak %0 >>%3
  40. if errorlevel 1 goto end
  41. pak v >>%3 %4
  42. if errorlevel 1 goto error
  43. goto end
  44.  
  45. :lzh
  46. chkpath lzhtv %0 >>%3
  47. if errorlevel 1 goto end
  48. lzhtv -p%1 -t%2 >>%3 %4
  49. if errorlevel 1 goto error
  50. goto end
  51.  
  52. :error
  53. echo. >>%1
  54. echo %0: Error processing %4 ! >>%1
  55. echo The system is either low on disk space or memory. >>%1
  56. goto end
  57.  
  58. :cant_handle
  59. echo Sorry, %0 does not know how to process %4 ! >>%3
  60.  
  61. :end
  62.